#pragma once
#include "pch.h"
#include <vector>

#include "KLine.h"
#include <algorithm>

class IPoint;

vector<KLine*>* initKLines(int dataLen, float* high, float* low, float* close);

void clearKLines(vector<KLine*>* kLines);
int findNextLeftPoint(vector<KLine*>* kLines, int idx);
int findNextRightPoint(vector<KLine*>* kLines, int idx);
bool isBearTrap(vector<KLine*>* kLines, int idx);